Skip to content

Fix CPAN random tester module compatibility#861

Merged
fglock merged 2 commits into
masterfrom
fix/cpan-random-tester-modules-pr
Jun 18, 2026
Merged

Fix CPAN random tester module compatibility#861
fglock merged 2 commits into
masterfrom
fix/cpan-random-tester-modules-pr

Conversation

@fglock

@fglock fglock commented Jun 17, 2026

Copy link
Copy Markdown
Owner

Summary

  • Fix CPAN random-tester failures for IO::Async::Loop, Math::Currency, URI, Class::Container, Excel::Writer::XLSX, Device::SerialPort, List::SomeUtils, Test::LongString, Moose, and HTML::Template::Parser.
  • Add CPAN distroprefs/patches for unsupported or PerlOnJava-specific dependency behavior.
  • Add runtime fixes for warn fallback, weak-ref cleanup, closure-captured CODE refs, POSIX termios/times, precise Time::HiRes sleep, Test::Builder levels, URI escaping warnings, and high-precision sprintf %g output.
  • Keep Moose random-tester coverage bounded by default, with PERLONJAVA_MOOSE_FULL_TESTS=1 for the full upstream suite.

Validation

  • timeout 1200 make
  • timeout 60 prove src/test/resources/unit/sprintf_high_precision_g.t
  • timeout 60 ./jperl src/test/resources/unit/sprintf_high_precision_g.t
  • targeted Excel::Writer::XLSX chart_layout01/02/03/05/06 regression tests
  • timeout 7200 ./jcpan -t Excel::Writer::XLSX: Files=1247, Tests=5115, Result: PASS
  • jcpan pass logs collected for the requested modules during the investigation.

Notes

  • The PR branch intentionally excludes dev/cpan-reports refresh files from the active random tester.

@fglock fglock force-pushed the fix/cpan-random-tester-modules-pr branch 3 times, most recently from a54ea28 to 88d070d Compare June 17, 2026 18:57
Fix compatibility failures discovered by dev/tools/cpan_random_tester.pl across IO::Async::Loop, Math::Currency, URI, Class::Container, Excel::Writer::XLSX, Device::SerialPort, List::SomeUtils, Test::LongString, Moose, and HTML::Template::Parser.
Add targeted runtime fixes, CPAN distroprefs/patches, and regression tests for warning handling, weak refs, closure captures, Test::Builder levels, and high-precision sprintf %g formatting.
Validate Moose with a bounded smoke test path while leaving a full-test opt-in.

Generated with Codex (https://openai.com/codex)

Co-Authored-By: Codex <codex@openai.com>
@fglock fglock force-pushed the fix/cpan-random-tester-modules-pr branch from 88d070d to efb9550 Compare June 17, 2026 18:59
The nested weak sweep regression test imported Sub::Quote directly. CI
runs unit resources with only src/main/perl/lib and the jar in @inc, so
the test failed before exercising the weak-reference behavior.

Inline the minimal quoted-sub metadata pattern used by the regression so
the test remains independent of developer CPAN caches.

Generated with Codex (https://openai.com/codex)

Co-Authored-By: Codex <codex@openai.com>
@fglock fglock merged commit 233e84a into master Jun 18, 2026
2 checks passed
@fglock fglock deleted the fix/cpan-random-tester-modules-pr branch June 18, 2026 08:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant